package com.bjesc_b2c.app.appraiset.mvp.presenter.impl;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.mvp.model.AddCarModel;
import com.bjesc_b2c.app.appraiset.mvp.model.impl.AddCarModelImpl;
import com.bjesc_b2c.app.appraiset.mvp.presenter.AddCarPresenter;
import com.bjesc_b2c.app.appraiset.mvp.view.CarIdView;

import master_bean.BasicInfoBean;

/**
 * Created by lenovo on 2017/4/21.
 */

public class AddCarPresenterImpl implements AddCarPresenter,AddCarModelImpl.CallBack {
    private AddCarModel addCarModel;
    private CarIdView view;
    public AddCarPresenterImpl(CarIdView view) {
        this.view = view;
        addCarModel = new AddCarModelImpl(this);
    }

    @Override
    public void requestAddCarId(BasicInfoBean bean) {
        addCarModel.requestAddCarId((Context)view,bean);
    }

    @Override
    public void callback(BasicInfoBean bean) {
        view.getCarId(bean);
    }

}
